import { MockMethod } from 'vite-plugin-mock'

const roleList = [{
  "status": "1",
  "createBy": "123",
  "createTime": "2021-10-26 14:21:28",
  "deleteStatus": "1",
  "id": "163525808849773",
  "roleName": "橘色1026",
  "roleKey": "1026"
}, {
  "status": "1",
  "createBy": "123",
  "createTime": "2021-01-24 08:25:03",
  "deleteStatus": "1",
  "id": "161147670252919",
  "roleName": "1232",
  "roleKey": "3212"
}, {
  "status": "1",
  "createBy": "123",
  "createTime": "2021-01-24 08:24:51",
  "deleteStatus": "1",
  "id": "161147669084483",
  "roleName": "123",
  "roleKey": "321"
}, {
  "status": "1",
  "createBy": "123",
  "createTime": "2021-01-17 14:29:54",
  "deleteStatus": "1",
  "id": "161089379448808",
  "roleName": "测试角色",
  "roleKey": "test"
}, {
  "status": "1",
  "createBy": "123",
  "createTime": "2020-08-20 15:12:04",
  "updateBy": "123",
  "updateTime": "2020-10-19 15:09:03",
  "deleteStatus": "1",
  "id": "13",
  "roleName": "普通用户",
  "roleKey": "common"
}, {
  "status": "1",
  "createBy": "123",
  "createTime": "2020-08-20 15:11:57",
  "deleteStatus": "1",
  "id": "12",
  "roleName": "管理员",
  "roleKey": "admin"
}]
export default [
  {
    url: '/mock/system/role/list',
    method: 'get',
    response: ({ query,data }) => {
      return {
        code: 200,
        data: roleList,
        message: '操作成功',
        total: 6
      }
    }
  }
] as MockMethod[]